<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>

    <?php
    /**
     * Created by PhpStorm. User: ADun, Date: 14-10-15 下午10:11
     * Description:
     */
    //标示页面，commit页面保存时解析是来自哪个页面的保存
    $busFlag=Page::y用户中心;
    $openId=getCurrentUserOID();//id
    $center=new CUI数据中心(Page::m卖家中心,$openId);
    $用户信息 = $center->生成有效链接('UserInfo',$_GET['state']);
    $推广二维码 = $center->生成有效链接('Seller11Qrcodea',$_GET['state']);
    $推广二维码show = $center->生成有效链接('Seller11Qrcode',$_GET['state']);
    $已推广人员列表 = $center->生成有效链接('Seller11Qrcodelist',$_GET['state']);
    //$用户推广二维码=pdo()->selectColumns("用户推广表",array("*"),array("用户id"=>$_SESSION['vo用户数据']['id']));
    $do= new Do后台管理员();
    $分享内容=pdo()->selectBO($do,array('公众号ID'=>$_SESSION['vo用户数据']['公众号ID']));


    if(!empty($openId)){

        $center=new CUI数据中心(Page::y用户中心,$openId);
        $do=$center->get用户信息();
    }else{
        $do=false;

    }
    $voCenter=C信息中心::get实列根据用户Oid($openId);
    $c用户=new C用户($voCenter);
    $显示=$c用户->fc显示所有显示的推广文章();

    require_once __DIR__ . '/jssdk.php';
    $数据 = pdo()->selectColumns('public_serv_accounts',array('AppSecret','app_id'),array('id' => G_SERV_ID));
    $jssdk = new JSSDK($数据['app_id'], $数据['AppSecret']);
    $signPackage = $jssdk->getSignPackage();
    ?>
<style>
    a { text-underline: none;color:#db3655; }
</style>
    <link rel="stylesheet" href="../style/common.css?<?=版本?>">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
    <script src="../js/jquery.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="../../app/js/common.js"></script>
</head>
<body style="background-color:#fff;">
<div id="tuig">
    <div class="logo1"><img src="../style/tuig1.jpg" alt="" ></div>
    <div class="t-word">大V专家的临床经验分享都在这里！</div>
    <div class="t-img"><img src="style/tuig2.jpg" alt=""></div>
    <div class="btn">
        <?php foreach($显示 as $show=>$value): ?>
        <?php endForeach; ?>
        <a  class="btn-a" href='<?=G_SITE_BASE?>/business/Seller11Qrcode.php?uid=<?=$_SESSION['vo用户数据']['id']?>&wzid=<?=$value['id']?>' >
            <!-- <div class="b-img">
                <img src="style/tuig3.jpg" alt="">
            </div> --><div class="b-word">
                <?=$value['备注']?></div>
            <div class="clear"></div>
        </a>

    </div>
    <div class="cont"><?= $分享内容->data['分享介绍'];?></div>
</div>

<div style="height:30px;width:100%;background:#db3655;color:#fff;font-size:80%;line-height:30px;text-align:center;position:position;bottom:0px;">操作过程中如有疑问，请致电客服热线：4008258989</div>
</body>
</html>
<script language="javascript">
    wx.config({
        debug: false,
        appId: '<?php echo $signPackage["appId"];?>',
        timestamp: <?php echo $signPackage["timestamp"];?>,
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',
        signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: [
            'onMenuShareAppMessage',
            'onMenuShareTimeline',
            'onMenuShareQQ',
            'onMenuShareWeibo',
            'onMenuShareQZone'
        ]
    });

    title = '爱贝儿医';
    desc = '爱贝儿医—专注于做儿科医生间学习工作交流平台。平台拥有数十位来自省级以上重点三甲医院的儿科专家、重点医院儿科学科带头人、国内儿科权威人士组成的豪华专家团队。';
    links = '';
    imgUrl = '<?= G_SITE_BASE ?>/business/img/logoRed2.png';
    weixinShare(title, desc, links, imgUrl);
</script>
